package com.palfund.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class DynamicReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        String info = intent.getStringExtra("info");
        Toast.makeText(context, "Dynamic   " + info, Toast.LENGTH_SHORT).show();
        Log.i("DynamicReceiver", "---onReceive()--->" + info);
        if ("order".equals(info)) {
            Bundle bundle = new Bundle();
            bundle.putString("info", "DynamicReceiver   info   444");
            bundle.putString("extra", "DynamicReceiver   extra   ");
            setResultExtras(bundle);
        }
    }
}
